<#include "/common/_itjson_layout.ftl" />
<@itjsonCommonLayout "xmlformat">

<!-- begin主体 -->

     <div id="accordion2" class="accordion">
        <div class="accordion-group">
            
            


            <div role="alert" class="alert alert-success alert-dismissible">
                <button aria-label="Close" data-dismiss="alert" class="close" type="button">
                    <span aria-hidden="true">×</span></button>
                XML在线压缩，格式化工具（实现XML代码在线压缩、在线格式化等功能）
            </div>
            
            <div class="panel">
                <form method="post" action="${www}/itjson/xmlformat.html" class="form-horizontal" id="form1">
                <div class="form-group">
                    <div class="col-sm-12">
                        <textarea placeholder="请输入要格式化或压缩的XML代码" style="max-height: 2222px;" rows="18" class="form-control" id="content" onmouseover="this.focus();"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <input type="button" class="btn btn-success" value="Xml格式化" onclick="$('#content').format({method: 'xml'});">
                        <input type="button" class="btn btn-success" value="Xml压缩" onclick="$('#content').format({method: 'xmlmin'});">
                        <input type="button" class="btn btn-danger" value="清空输入框" onclick="CommonEmpty();">
                        <span data-clipboard-target="content" class="btn btn-success" id="copyallcode">复制完整内容</span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-12">
                        <div role="alert" id="copycodeall" class="alert alert-success alert-dismissible text-center">
                            <strong>复制成功!</strong> &nbsp;&nbsp;代码已经成功复制到剪切板&nbsp;&nbsp;可直接粘贴到任意地方.
                        </div>
                    </div>
                </div>
                </form>
            </div>
        </div>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a href="#demo1" data-toggle="collapse" class="list-group-item list-group-item-warning">
                     Xml在线压缩格式化，Xml格式化解析工具</a>
            </div>
            <div class="in collapse bs-docs-demoexample" id="demo1">
                <h4 style="color: #66be8c;">
                    Xml在线压缩格式化</h4>
                <br>
                <h5>
                    1,将XML进行压缩可以减少保存Xml数据消耗的系统内存</h5>
                <h5>
                    2,格式化后的Xml数据更容易看清楚它的格式和结构,从而操作Xml更方便</h5>
            </div>
        </div>
        <br>
    </div>





<!-- end主体 -->


</@itjsonCommonLayout>